#include <iostream>
#include <stdexcept>

#include "Graphics/Engine.h"
#include "Math/Size.h"
#include "Billiards.h"

int main(int argc, char* argv[])
{
	try
	{
		//Initialize the graphics subsystem
		Graphics::Engine::initialize(argc,argv);
		//Create a window
		Graphics::Engine::instance()->createWindow(Math::Size(1024,768), "Billiards 3D");

		//Create game assets
		Billiards::instance()->createGame();

		//Start the game
		//Billiards::instance()->start();
		//Start rendering!
		Graphics::Engine::instance()->start();

		//Done
		Graphics::Engine::instance()->shutdown();

	}
	catch (std::logic_error& err)
	{
		std::cerr << err.what() << std::endl;
		return 1;
	}

	return 0;
}

int google()
{
	return 1;
}
